/*
#include<iostream>
using namespace std;

double calBest(int price, int volume);

int main()
{
	int T, N;

	char name[100];
	char best[100];
	int price, volume, preVolume;
	double preBest, curBest;
	cin>>T;
	while(T--)
	{
		cin>>N;
		for(int i=0; i<N; i++)
		{
			cin>>name>>price>>volume;
			if(volume<200)
				continue;
			curBest = calBest(price, volume);
			if(i==0)
			{
				preBest = curBest;
				preVolume = volume;
				strcpy(best, name);
				continue;
			}
			if(curBest<=preBest)
			{
				if(curBest==preBest)
				{
					if(volume>preVolume)
					{
						strcpy(best, name);
						preVolume = volume;
						preBest = curBest;
					}
				}
				else
				{
					strcpy(best, name);
					preVolume = volume;
					preBest = curBest;
				}
			}
		}
		cout<<best<<endl;
	}
	return 0;

}

double calBest(int price, int volume)
{
		if(volume>=1000)
		{
			return double(price)/5;
		}
		else
		{
			int n = volume/200;
			return double(price)/n;
		}
}

*/